<template>
	<view>
		<view class="top-list u-f" @tap="opendetail">
			<!-- 左边图 -->
			<image :src="item.titlepic" mode="widthFix" lazy-load></image>
			<!-- 右边的列 -->
			<view>
				<view>{{item.title}}</view>
				<view class="test">{{item.desc}}</view>
				<view>动态{{item.totalnum}}今日{{item.todaynum}}发表</view>
				
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			item:Object,
			index:Number
		},
		data() {
			return {
				
			}
		},
		methods: {
			opendetail(){
				
				uni.navigateTo({
					url:"../../pages/topic-detail/topic-detail"
				})
				
			}
		}
	}
</script>

<style scoped>
/* 更新 */
	.top-new-list{
		padding: 24upx;
	}
	.top-new-list>view:first-child{
		padding-bottom: 10upx;
		font-size: 32upx;
	}
	.top-list{
		padding: 10upx 0;
		border-bottom: 1upx solid #EEEEEE;
	}
	.top-list image{
	width:250upx;
	height: 250upx;
	border-radius: 10upx;
	margin-right: 30upx;
	
	}
	.top-list>view>view{
	
		color: #a4a4a4a4;
		margin: 1upx;
	}
	
	.top-list>view>view:first-child{
		color: #333333;
		font-size: 30upx;
	}
</style>
